<?php
$seitcm_class_id = isset($_GET['class']) ? $_GET['class'] : 0;
$seitcm_class_data = seitcm_get_single_class($seitcm_class_id);
$seitcm_action =  isset($_GET['action']) ? $_GET['action'] : 'list';
$seitcm_action = $seitcm_action == 'periodicpreviews' || $seitcm_action == 'examinationscores' || $seitcm_action == 'detail' || $seitcm_action == 'update' ? $seitcm_action : 'list';
if($seitcm_class_data == null)
{
	//404
}
else {
	if($seitcm_action=="examinationscores"){
		if(current_user_can('seitcm_scores_update'))
			require_once 'seitcm_class_score_examinationscores_partial.php';
	}
	else if($seitcm_action=="periodicpreviews"){
		if(current_user_can('seitcm_scores_update'))
			require_once 'seitcm_class_score_periodicpreviews_partial.php';
	}
	else if($seitcm_action=='list')
	{
		require_once 'seitcm_class_score_list_partial.php';
	}
}